<?php
defined('BASEPATH') or exit('No direct script access allowed');

class PDDLController extends Comm_Controller
{

    public function __construct()
    {
        try {
            parent::__construct();
        } catch (\TPException $e) {
            exit($e->getRetJson());
        }
    }

    /**
     * getRoles function
     *
     * @Name getRoles
     * @Desc 获取所有roles
     * @OpenFlag 是否开放,1开放0权限控制
     * @Author Pekey
     * @Date 2020-09-03
     * @return void
     */
    public function getRoles()
    {
        $this->load->Model("PModel/Role_model");
        $datas = $this->Role_model->get_list(array());
        exit(retSucc($datas));
    }

}
